package com.apexsoft.monitor.front.console.task.om;

import com.baomidou.mybatisplus.annotations.IdType;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;

/**
 * 任务管理
 */
@TableName("t_task")
public class Task {
    /**
     * 任务表
     */
    @TableId(type = IdType.AUTO)
    private int id;
    /**
     * 任务名称
     */
    @TableField(value = "task_name")
    private String taskName;
    /**
     * 任务代码
     */
    @TableField(value = "task_code")
    private String taskCode;
    /**
     * 值
     */
    @TableField(value = "value")
    private String value;
    /**
     * 任务分类，template-模板,node-节点
     */
    @TableField(value = "category")
    private String category;
    /**
     * 根据code_type，分别保存template_code 或 node_code
     */
    @TableField(value = "category_code")
    private String categoryCode;
    /**
     * stream-流水任务 ， file-文件查看，quota-指标
     */
    @TableField(value = "group")
    private String group;
    /**
     * stream-流水任务 (log-日志流水，request-请求流水，business-业务流水
     * file-文件查看(setFile-配置文件，source-源码)
     * quota-指标（mAgent-采集指标，sdk-sdk指标）
     */
    @TableField(value = "type")
    private String type;
    /**
     * 状态 1-启用，0-停用
     */
    @TableField(value = "status")
    private String status;

    /**
     * 属性(json格式)
     */
    @TableField(value = "attribute")
    private String attribute;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getTaskName() {
        return taskName;
    }

    public void setTaskName(String taskName) {
        this.taskName = taskName;
    }

    public String getTaskCode() {
        return taskCode;
    }

    public void setTaskCode(String taskCode) {
        this.taskCode = taskCode;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public String getCategory() {
        return category;
    }

    public void setCategory(String category) {
        this.category = category;
    }

    public String getCategoryCode() {
        return categoryCode;
    }

    public void setCategoryCode(String categoryCode) {
        this.categoryCode = categoryCode;
    }

    public String getGroup() {
        return group;
    }

    public void setGroup(String group) {
        this.group = group;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getAttribute() {
        return attribute;
    }

    public void setAttribute(String attribute) {
        this.attribute = attribute;
    }
}
